package com.example.demo.adapter;

/**
 * @Description
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2022/1/11
 */
public class Phone {
    //充电
    public void charing(Voltage5v voltage5v){
        if(voltage5v.output5v()==5){
            System.out.println("电压等于5v充电");
        }else {
            System.out.println("电压大于5v不能充电");
        }
    }
}
